// JavaScript Document
window.onload = function(){
	//传用户名
	var a = document.getElementById('dlu');
	var user = localStorage.getItem("user");
	if(user!=null){
		a.innerHTML = '<span><a href="RegLogin.html" style="color:#aac4bc">'+user+'</a></span>';
	}
}
var oDivb,DivUl;
//鼠标滑过改变字体
function MyOver(Mid){
	var str=Mid;		//将形参赋值给str方便下面id面板的获取
	oDivb = document.getElementById(str);
	//改变字体的颜色及加粗
	//oDivb.style.color='black';
	oDivb.style.fontWeight='600';
}
function MyOut(Mid){
	oDivb.style.color='#ffffff';
	oDivb.style.fontWeight='400';
}
//显示列表
function SD(){
	DivUl = document.getElementById("ul1");		//获取id为ul1的文档对象
	var Play=DivUl.style.display;
	if(!DivUl.style['-webkit-animation'])		//如果不为空值
	{
		DivUl.style.display = 'block';			//列表显示
		DivUl.style['-webkit-animation']='fadeInUp .4s linear .4s forwards';	//延时显示功能
	}else
	{
		DivUl.style.display = 'none';			//列表隐藏
		DivUl.style['-webkit-animation']=null;
	}
}
function OcOver(){
	DivUl.style.opacity = '1';		//透明度为1；
}
function OcOut(){
	DivUl.style.opacity = '0';
}
//返回顶部
function Top(){
	var Time = setInterval(function(){
		SetY = window.pageYOffset-50;
		scroll(0,SetY);
		if(window.pageYOffset<=0){window.clearInterval(Time);}
	},10);
}
function A(i){
	window.localStorage.setItem(i.toString(),0);
	alert("ok");
		}
